﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ZHDJ.Web.Portal.Grassroots.Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        .divItem {
            width: 100%;
            margin-top: 10px;
        }

        .group {
            height: 60px;
            width: 260px;
            padding: 5px;
            font-size: 16pt;
            text-align: center;
            border: 1px solid lightgray;
            color: red;
            background-color: gainsboro;
            font-weight: 700;
        }

        .groupItem {
            padding: 5px;
            width: 110px;
            font-size: 11pt;
            border-bottom: 1px solid lightgray;
            border-right: 1px solid lightgray;
            color: green;
        }

        .firstGroupItem {
            border-top: 1px solid lightgray;
        }
    	.bgline {
			margin-bottom: 20px;
    	}
    </style>
    <script src="../../Resource/js/default/jquery.tmpl.min.js"></script>
    <script src="../../Resource/js/knockout/knockout-3.4.0.js"></script>
    <script type="text/javascript">
        var isBind = false;
        var ViewModel = {
            qdate: ko.observableArray(),
            loadContacts: function () {
                var ss = eval("(" + $("#ctl00_ContentPlaceHolder1_hdData").val() + ")");
                ViewModel.qdate(ss);
            },
            //displayMode: function (item) {
            //    var templatename = "myTemplate3";
            //    if (item.Title == "更多")
            //    {
            //        templatename = "myTemplate4";
            //    }
            //    return templatename;
            //}
        }

        $(function () {
            ViewModel.loadContacts();
            if (!isBind) {
                ko.applyBindings(ViewModel);
                isBind = true;
            }
        });

        function ShowMore(e) {
            $(e).parent().prevAll().find("a:hidden").show();
            $(e).hide();
        }
    </script>
    <script id="myTemplate" type="text/x-jquery-tmpl">
        <div class="grassroots_t">
            <div class="grassroots_t_b title">${Title}</div>
            <!-- ko template: { name: 'myTemplate2', foreach: Gq} -->
            <!-- /ko -->
        </div>

    </script>
    <script id="myTemplate2" type="text/x-jquery-tmpl">
        <div class="grassroots_t_b group2">
            <div class=" gqd">${Title}</div>
            <div class="itemd grassroots_t_l">
                <ul>
                    <!-- ko template: { name: 'myTemplate3', foreach: Items} -->
                    <!-- /ko -->
                </ul>
            </div>
            <div class="clear"></div>
        </div>
    </script>
    <script id="myTemplate3" type="text/x-jquery-tmpl">
        <li><a href="${href}" onclick="${onclick}" target="_blank" style="${innerstyle}">${Title}</a></li>
    </script>
    <%--    <script id="myTemplate3" type="text/x-jquery-tmpl">
        <li><a href="ItemDetail.aspx?ItemID=${ID}" target="_blank" style="${InnerStyle}">${Title}</a></li>
    </script>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="party-navigation">
        当前位置：<a href="/Default.aspx">首页</a> > 驻点直联工作
    </div>
    <div class="bgline"></div>
    <div class="more_p clear-fix" style="background: transparent;">
        <div class="mp_left">
            <div class="gypt">
                <div class="s_content_t">
                    <span class="s_content_t_i">
                        <asp:Literal runat="server" ID="litModuleName">驻点直联</asp:Literal>
                    </span>
                </div>
                <div class="s_content_border s_content_k menu_content_k">
                    <div class="alisttab clearfix">
                        <a target="_blank" href="Statistics.aspx" id="licurrent">驻点直联</a>
                    </div>
                    <div class="alisttab clearfix">
                        <a target="_blank" href="WorkTrendMore.aspx?category=GrassrootsWorkTrend">驻点工作状态</a>
                    </div>
                    <div class="alisttab clearfix">
                        <a target="_blank" href="DocumentMore.aspx?category=GrassrootsWorkPoint">工作文件指引</a>
                    </div>
                    <div class="alisttab clearfix">
                        <a target="_blank" href="DocumentMore.aspx?category=GrassrootsWorkNotice">督导情况通报</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="mp_right" style="padding-top: 0;">
            <div class="s_content_k s_content_border s_content_k ">
                <div class="more_sy_right">
                    <div class="listtab  s_content_margin clearfix" style="margin-bottom: 3px;">
                        <a class="lovetab"><span class="s_content_t_i2"><span id="sCategoryName">组织列表</span></span></a>
                    </div>
                    <div class="clear"></div>

                    <!-- ko template: { name: 'myTemplate', foreach: qdate} -->
                    <!-- /ko -->
                    <asp:Literal runat="server" ID="table" Visible="false"> </asp:Literal>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>

	<script>
		$(function () {
			var lh = $(".mp_left").height();
			var rh = $(".mp_right").height();	
			if (lh < rh) {
				$(".mp_left").height(rh);
			} else {
				$(".mp_right").height(lh);				
			}
		});
	</script>
    <asp:HiddenField runat="server" ID="hdData" Value="" />

</asp:Content>
